IntentBuilder
IntentBuilder is a helper for constructing ACTION_SEND and ACTION_SEND_MULTIPLE sharing intents and starting activities to share content. The ComponentName and package name of the calling activity will be included.
Constructors
Functions
Link copied to clipboard
Add an email address to be used in the "bcc" field of the final Intent.
Add an array of email addresses to be used in the "bcc" field of the final Intent.
Link copied to clipboard
Add an email address to be used in the "cc" field of the final Intent.
Add an array of email addresses to be used in the "cc" field of the final Intent.
Link copied to clipboard
Add an email address to be used in the "to" field of the final Intent.
Add an array of email addresses to be used in the "to" field of the final Intent.
Link copied to clipboard
Add a stream URI to the data that should be shared.
Link copied to clipboard
Create an Intent that will launch the standard Android activity chooser, allowing the user to pick what activity/app on the system should handle the share.
Link copied to clipboard
@NonNull
Create a new IntentBuilder for launching a sharing action from launchingActivity.
Link copied to clipboard
@NonNull
Set the title that will be used for the activity chooser for this share.
Link copied to clipboard
@NonNull
Set an array of email addresses to BCC on this share.
Link copied to clipboard
Set an array of email addresses to CC on this share.
Link copied to clipboard
Set an array of email addresses as recipients of this share.
Link copied to clipboard
@NonNull
Set an HTML string to be sent as part of the share.
Link copied to clipboard
Set a stream URI to the data that should be shared.
Link copied to clipboard
@NonNull
Set a subject heading for this share; useful for sharing via email.
Link copied to clipboard
@NonNull
Set the literal text data to be sent as part of the share.
Link copied to clipboard
Set the type of data being shared
Link copied to clipboard
Start a chooser activity for the current share intent.